<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2017/10/17
  Time: 10:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/cart/css/main.css" type="text/css" />
    <!-- 导入首页轮播图css和js脚本 -->
    <link type="text/css" href="${pageContext.request.contextPath}/cart/css/autoplay.css" rel="stylesheet" />
    <link type="text/css" href="${pageContext.request.contextPath}/cart/css/body.css" rel="stylesheet" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/cart/js/autoplay.js"></script>
    <title>top</title>
</head>
<body class="main">
<!-- 1.网上书城顶部 start -->
<div id="divhead">
    <table cellspacing="0" class="headtable">
        <tr>
            <td>
                <a href="${pageContext.request.contextPath}/productListServlet">
                    <img src="${pageContext.request.contextPath}/cart/images/logo.png" width="200" height="60" border="0" />
                </a>
            </td>
            <td style="text-align:right">
                <img src="${pageContext.request.contextPath}/cart/images/cart.gif" width="26" height="23" style="margin-bottom:-4px" />&nbsp;<a href="${pageContext.request.contextPath}/cartListServlet">购物车</a>
                | <a href="#">帮助中心</a>
                <c:choose>
                    <c:when test="${empty sessionScope.user}">
                        | <a href="${pageContext.request.contextPath}/log/login.jsp">登陆</a>
                        | <a href="${pageContext.request.contextPath}/log/logon.jsp">注册</a>
                    </c:when>
                    <c:otherwise>
                        |${sessionScope.user.username}
                        |<a href="${pageContext.request.contextPath}/logoutServlet">注销</a>
                    </c:otherwise>
                </c:choose>
            </td>
        </tr>
    </table>
</div>
<!--2. 网上书城菜单列表  start -->
<div id="divmenu">
    <a href="#">文学</a>
    <a href="#">生活</a>
    <a href="#">计算机</a>
    <a href="#">外语</a>
    <a href="#">经管</a>
    <a href="#">励志</a>
    <a href="#">社科</a>
    <a href="#">学术</a>
    <a href="#">少儿</a>
    <a href="#">艺术</a>
    <a href="#">原版</a>
    <a href="#">科技</a>
    <a href="#">考试</a>
    <a href="#">生活百科</a>
    <a href="${pageContext.request.contextPath}/productListServlet" style="color:#FFFF00">全部商品目录</a>
</div>

<div id="divsearch">
    <form action="${pageContext.request.contextPath}/searchServlet" id="searchform">
        <table width="100%" border="0" cellspacing="0">
            <tr>
                <td style="text-align:right; padding-right:220px">
                    Search
                    <input type="text" name="keyword" class="inputtable" id="textfield" value=""/>
                    <button style="padding: 0px">
                        <img src="${pageContext.request.contextPath}/cart/images/serchbutton.gif" border="0" style="margin-bottom:-4px"/>
                    </button>
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>
